home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / xtclock2.zip / README.1ST < prev    next >
Text File  |  1991-07-30  |  2KB  |  61 lines

  1.  
  2.  
  3.       XTCLOCK2.ZIP is intended  as a survival kit  for the user
  4.      who somehow got stuck  with  an XT clock  card  and no
  5.     driver software. Files included are:
  6.  
  7.             SETCLOCK.C
  8.             SETCLOCK.EXE
  9.             SETCLOCK.BAS
  10.             GETCLOCK.C
  11.             GETCLOCK.EXE
  12.             GETCLOCK.BAS
  13.             SEEPORTS.BAS
  14.             README.1ST   (This file)
  15.  
  16.       These programs have  been written for a clock card with
  17.     the following port  configuration:
  18.  
  19.             &h242   Second
  20.             &h243   Minute
  21.             &h244   Hour
  22.             &h246   Day
  23.             &h247   Month
  24.             &h249   Year
  25.  
  26.     Most clock cards and I/O cards currently available seem to fit
  27.     this configuration.  The manual will probably give a port address
  28.     of &h240.
  29.  
  30.       If you are  sure your clock  card matches this configuration
  31.     you can use SETCLOCK.EXE and GETCLOCK.EXE without modification.
  32.     To initialize your clock card, run SETCLOCK.EXE and follow the
  33.     instructions.  Then run GETCLOCK to set the DOS time and date.
  34.     You can run GETCLOCK from your AUTOEXEC.BAT file to set the DOS
  35.     time and date when booting your computer.  If your card does not 
  36.     match this  configuration  you can  modify either the  C or BASIC
  37.     source files, depending on your compiler.
  38.  
  39.       If you  are  not  sure how your card is configured but you
  40.     have at  least  one  port address, you can use SEEPORTS.BAS
  41.     to display your ports.  If you have the right ports displayed
  42.     you will probably see them incrementing in  strange jumps.
  43.     This is Binary Coded Decimal. The way BCD works  is the
  44.     four low order  bits represent the ones digit and  the four
  45.     high  order bits represent the  tens digit. 
  46.  
  47.       If you  are looking  at a  port that  is  incrementing at about
  48.     the right rate to represent seconds and it counts to 79 and drops
  49.     back  to zero, you got  it.  If  the  next port increments by
  50.     one, at the  same time, it is  probably  the  one  for  minutes.
  51.     You can  use  the BASIC OUT statement  to write into  a port
  52.     and see if  you  can toggle another  port. Eventually you should
  53.     be able  to figure  out what each  port  does.  Some cards do not
  54.     increment the year but still store it at &h249.
  55.  
  56.       Good luck, and  I hope this gets your clock card  working.
  57.  
  58.             Gerald M. Vrooman
  59.             Chenango Forks, N.Y.
  60.  
  61.